package com.mrjy.common.exception;

import com.mrjy.common.enums.ResultEnum;

public class InnerException extends RuntimeException{
	private Integer code;

    public InnerException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());

        this.code = resultEnum.getCode();
    }

    public InnerException(Integer code, String message) {
        super(message);
        this.code = code;
    }

	public Integer getCode() {
		return code;
	}
    
    
}
